package components.valueobjects
{
	import com.adobe.utils.NumberFormatter;
	
	import components.location.LocationListItemRenderer;
	import components.location.map.MapComp;

	[Bindable]
	public class LocationVO
	{
		public static const TYPE_SIGHT:String = "sight";
		public static const TYPE_HOTEL:String = "hotel";
		public static const TYPE_OPNV:String  = "opnv";

		
		public var type:String;
		public var title:String;
		public var img:String;
		public var description:String;
		public var geolocation:GeoLocationVO;
		public var mapurl:String;
		public var distance:Number;
		
		
		public function LocationVO(type:String, title:String, img:String, description:String, geolocation:GeoLocationVO,mapurl:String)
		{
			this.type = type;
			this.title = title;
			this.description = description;
			this.img = img;
			this.geolocation = geolocation;
			this.mapurl = mapurl;
			
			var distance:int = (int)(MapComp.getDistance(geolocation.lat,geolocation.lon)*100);
			this.distance = (Number) (distance/100);
		}
		
		public function getNfcContent():Array{
			return null;
		}
		
	}
}